<script>
export default {
  name: "ring_redirect",
  methods: {
    copyNumHandle(){
      uni.setClipboardData({
        data: 'https://shucang.zhongfujiayi.com/#/pages/index/download', // data的值为你要复制的内容
        success: res => {
          uni.showToast({
            title:'复制成功'
          })
        }
      })
    }
  }
}
</script>

<template>
  <view class="ring_container">
    <view class="ring_title">
      您当前未开通钱包账户，请先开通钱包账户!
    </view>
    <view class="ring_img">
      <image src="@/static/ring/redirect_bg.png"></image>
    </view>
    <view class="ring_content_title">
      开通钱包流程
    </view>
    <view class="ring_content">
      <view class="ring_content_num">01</view>
      点击<text style="color: rgba(145, 221, 125, 1)">“复制链接”</text>按钮后，到浏览器进行粘贴
    </view>
    <view class="ring_content">
      <view class="ring_content_num">02</view>
      在浏览器页面，参照引导下载《金世界》APP
    </view>
    <view class="ring_content">
      <view class="ring_content_num">03</view>
      在《金世界》APP中，使用微信绑定的手机号进行验证码登录
    </view>
    <view class="ring_content">
      <view class="ring_content_num">04</view>
      进行开户
    </view>
    <button class="button_container" @click="copyNumHandle">复制链接</button>
  </view>
</template>

<style scoped lang="scss">
.ring_container {
  padding: 50rpx 0;
  color: #FFFFFF;
}
.ring_title {
  text-align: center;
  font-size: 28rpx;
  margin: 150rpx 0 50rpx 0;
}
.ring_content {
  position: relative;
  background: #212121;
  width: 90%;
  line-height: 40rpx;
  height: 112rpx;
  display: flex;
  align-items: center;
  padding: 0 0 0 100rpx;
  margin: 0 auto 12rpx auto;
  word-break: break-all;
  font-size: 24rpx;
  .ring_content_num {
    left: 25rpx;
    top: 0;
    position: absolute;
    width: 44rpx;
    line-height: 56rpx;
    height: 56rpx;
    background: linear-gradient(135deg, rgb(209, 200, 77) 0%, rgb(63, 168, 123) 100%);
    color: #ffffff;
    border-radius: 10rpx;
    text-align: center;
    font-size: 32rpx;
  }
}
.ring_content_title {
  margin: 130rpx 0 30rpx 0;
  text-align: center;
  font-size: 26rpx;
}
.button_container {
  width: 95%;
  margin-top: 50rpx;
  border-radius: 50rpx;
  background: linear-gradient(135deg, rgb(209, 200, 77) 0%, rgb(63, 168, 123) 100%);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(163, 182, 101);
}
.ring_img {
  text-align: center;
  margin-top: 27rpx;
  image {
    width: 323rpx;
    height: 221rpx;
  }
}
</style>
